<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>universidad.com</title>
        <link href="jq/humanity/jquery-ui-1.10.4.custom.min.css" type="text/css" rel="stylesheet"/>
        <link href="css/main.css" type="text/css" rel="stylesheet"/>
        <link href="alumno/table/table.css" type="text/css" rel="stylesheet"/>

        <script src="jq/jquery/jquery-1.10.2.js" type="text/javascript"></script>
        <script src="jq/jquery/jquery-ui-1.10.4.custom.min.js" type="text/javascript"></script>
        <script src="alumno/table/table.js" type="text/javascript"></script>
        <script src="js/main.js" type="text/javascript"></script>
    </head>
    <body>
        <table class="alumno" style="margin: auto;width: 500px">
            <thead>
                <tr>
                    <td>Alumno</td>
                    <th>Nota 1</th>
                    <th>Nota 2</th>
                    <th>Nota 3</th>
                    <td>Comentario</td>

                    <th class="crud">
                        <a href="#" class="ins" onclick="jsIns();" 
                           title="Nuevo"><span></span></a>
                    </th>
                    <th class="crud">
                        <a href="#" class="del" onclick="jsDel();"
                           title="Retirar"><span></span></a>
                    </th>
                    <th class="crud">
                        <a href="#" class="upd" onclick="jsUpd();"
                           title="Actualizar"><span></span></a>
                    </th>
                </tr>
            </thead>
            <tbody>
                <c:forEach var="f" items="${list}">
                    <tr>
                        <td>${f.alumno}</td>

                        <td style="text-align: center">
                            <fmt:formatNumber pattern="#.00" value="${f.nota1}"/>
                        </td>

                        <td style="text-align: center">
                            <fmt:formatNumber pattern="#.00" value="${f.nota2}"/>
                        </td>

                        <td style="text-align: center">
                            <fmt:formatNumber pattern="#.00" value="${f.nota3}"/>
                        </td>


                        <td colspan="2">${f.comentario}</td>

                        <th>
                            <input type="checkbox" name="_del" 
                                   value="${f.idalumno}"/>
                        </th>
                        <th>
                            <input type="radio" name="_upd" 
                                   value="${f.idalumno}"/>
                        </th>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
    </body>
</html>
